<%@ page import="com.software.entity.Invoice" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>


<form action="/exam/searchInvoiceByName" method="post">
    开票人：<input type="text" value="${issuerName}" name="issuerName" >
    <button type="submit">查询</button>
</form>

<form action="/exam/searchInvoiceByNumber" method="post">
    发票号：<input type="text" value="${invoiceNumber}" name="invoiceNumber" >
    <button type="submit">查询</button>
</form>




<table border="1">
    <tr>
        <th>发票号</th>
        <th>开具日期</th>
        <th>开票人姓名</th>
        <th>发票金额</th>
        <th>发票状态</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${invoiceList}" var="invoice">
        <tr>
            <td><c:out value="${invoice.invoiceNumber}"/></td>
            <td><c:out value="${invoice.issueDate}"/></td>
            <td><c:out value="${invoice.issuerName}"/></td>
            <td><c:out value="${invoice.avatotalAmounttar}"/></td>
            <td><c:out value="${invoice.invoiceStatus}"/></td>
            <td><a href="${request.getContextPath()}/exam/updateState?invoiceNumber=${invoice.invoiceNumber}"></a></td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
